package com.googlecode.wheres_my_stuff_okay_potato;

import junit.framework.Assert;

/**
 * This class tests the create user and create admin methods.
 * 
 * @author Clay
 * 
 */
public class ClayJUnitTests {
	private Global global = new Global();

	public void testCreateUser() {
		global.createUser("megaman", "megaman", "mega@man.com");
		User n = new User("megaman", "megaman", "mega");
		Assert.assertEquals(n, global.getUser("megaman"));
	}

	public void testCreateAdmin() {
		global.createAdmin("megamanz", "megaman", "mega@man.com");
		User n = new User("megamanz", "megaman", "mega");
		Assert.assertEquals(n, global.getUser("megamanz"));
	}
}
